package firehwak.thoth.client.phonestate;

import android.telephony.PhoneStateListener;
import android.telephony.SignalStrength;

public class MyPhoneStateListener extends PhoneStateListener {
	public MyPhoneStateListener() {
		super();
		signalStrength = 0;
	}

	@Override
	public void onSignalStrengthsChanged(SignalStrength signalStrength) {
		super.onSignalStrengthsChanged(signalStrength);
		this.signalStrength = signalStrength.getGsmSignalStrength();
	}

	public int getSignalStrength() {
		return signalStrength;
	}

	private int signalStrength;
}